package unit4.task4_2;

public class Customer1 {
    private int userID;
    public String userName; //客户名字
    private  char sex;
    protected  String phone;
    private  String homePhone;
    private  String email;
    private  String qq;
    private  String cardID;
    private  String address;

    public  Customer1(){
        System.out.print("这是客户构造方法！");
    }
    public Customer1(int userID,String userName,char sex,String phone,
                     String homePhone,String email,String qq,String cardID,
                     String address ){
        System.out.print("这是一个带参数的客户构造方法！");
        this.userID=userID;
        this.userName=userName;
        this.sex=sex;
        this.phone=phone;
        this.homePhone=homePhone;
        this.email=email;
        this.qq=qq;
        this.cardID=cardID;
        this.address=address;
    }
    //一组get/set属性方法
    //显示用户名信息
    public void showUserName(){
        System.out.print("客户的姓名："+userName);
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}

}
